package com.plusjun.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.plusjun.common.utils.PageUtils;
import com.plusjun.gulimall.product.entity.SkuInfoEntity;
import com.plusjun.gulimall.product.vo.SkuItemVO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author jiajiajun
 * @email ${email}
 * @date 2020-05-13 18:07:01
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存sku信息
     * @param skuInfoEntity
     */
    void saveSkuInfo(SkuInfoEntity skuInfoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    List<SkuInfoEntity> getSkusBySpuId(Long spuId);

    SkuItemVO item(Long skuId) throws ExecutionException, InterruptedException;

    Map<Long, BigDecimal> getNewPrice(List<Long> skuIds);
}

